// @ 符号在vue.config.js 中配置， 表示 'src' 路径的别名
import request from '@/utils/request'

const context_path = '/borrower'
export default {
  getPageList(page, size, keyword) {
    return request({
      url: `${context_path}/${page}/${size}`,
      method: 'get',
      params: {keyword}
      // data: userInfoSearchVo
    })
  },
  removeById(id) {
    return request({
      url: `${context_path}/${id}`,
      method: 'delete'
    })
  },
  save(data) {
    return request({
      url: `${context_path}`,
      method: 'post',
      data: data
    })
  },
  getById(id) {
    return request({
      url: `${context_path}/${id}`,
      method: 'get'
    })
  },
  approval(borrowerApproval) {
    return request({
      url: '/borrower/approval',
      method: 'post',
      data: borrowerApproval
    })
  }
}
